<?php

session_start();


require_once '../../../serverResources/includes/db/ConnDBUser.php';
require_once '../../../serverResources/includes/classes/AComment.php';

include_once '../others/refreshSessionTime.php';
$info=array();
array_push($info, $_POST);

if(isset($info[0]['comment']) && isset($info[0]['edited']) && isset($info[0]['id'])){

	$aComm1=new AComment($info[0]['comment'], $info[0]['edited'], $info[0]['id'], $_SESSION['userID'], $_SESSION['projectID']);
	$aComm1->storeComment();
	unset($qcomm1);

	echo $info[0]['comment'];
}